﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<%@ Import Namespace="volva.Models" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% 
        WebUser user = ViewData["user"] as WebUser;
         %>

    <h1><% Response.Write(user.username); %></h1>
    <br />
    <h2>Athugasemdir <% Response.Write(user.username); %>s</h2>
    
    <ul>
    <% foreach (Comment comment in user.Comments)
       {
           %>  <li> 
                    <%= Html.ActionLink(comment.Video.name, "Video/" + comment.Video.id) %><br />   
                    <% Response.Write(comment.comment1); %>
                </li> <%
       } %>
    </ul>
    <h3>Stöðvar þar sem að <%= (user.username) %> er dagskrárgerðarmaður eða stjórnandi</h3>
    <%  List<Station> stations = ViewData["stations"] as List<Station>;
        foreach (Station station in stations)
        {
            Response.Write("<a href='/Station/Details/" + station.id + "'>" + station.name + "</a><br />");
        } 
            %>
   

</asp:Content>
